//
//  Creature.h
//  GameofLife
//
//  Created by lbc on 16/9/13.
//
//

#ifndef _GameOfLife_Creature_h
#define _GameOfLife_Creature_h
#include "cocos2d.h"
class Creature :public cocos2d::Sprite{
public:
    CREATE_FUNC(Creature);
    bool init() override;
    
    void setLivingNeighborsCount(int livingNeighorsCount);
    int getLivingNeighborsCount();
    
    void setIsAlive(bool isAlive);
    bool getIsAllive();
protected:
    bool isAlive;
    int livingNeighborsCount;
};

#endif /* Creature_h */
